package com.xt.LibaryDeskManager.dto;

/**
 * @author 童归权
 * @version 1.0 2021/2/12
 */
public class StudentDto {
    private String studentNo;
    private String studentName;
    private String password;
    private String studentPhone;
    private Boolean valid;
    private String validName;

    public StudentDto(String studentNo, String studentName, String password, String studentPhone, Boolean valid, String validName) {
        this.studentNo = studentNo;
        this.studentName = studentName;
        this.password = password;
        this.studentPhone = studentPhone;
        this.valid = valid;
        this.validName = validName;
    }

    public StudentDto() {
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getStudentPhone() {
        return studentPhone;
    }

    public void setStudentPhone(String studentPhone) {
        this.studentPhone = studentPhone;
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
      if (valid){
          this.validName="有效";
      }else{
          this.validName="无效";
      }
    }

    public String getValidName() {
        return validName;
    }

    public void setValidName(String validName) {
        this.validName = validName;
    }
}
